package cn.lingyangwl.agile.infra.module.file.model.rqrs;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;

/**
 * 素材
 *
 * @author shenguangyang
 */
@Getter
@Setter
public class MediaMaterialBase {
    @ApiModelProperty(value = "素材类型")
    private String type;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "素材地址")
    private String url;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "素材分组id")
    private Long groupId;

    @ApiModelProperty(value = "文件大小")
    private Long size;

    private String remark;
}
